package com.yhb.myshop.domain;

import javax.validation.constraints.NotEmpty;
import java.io.Serializable;

public class TbCategory extends BaseEntity implements Serializable {
    private int parentId;
    @NotEmpty(message = "名称不能为空")
    private String name;
    private int status;
    private int sortOrder;

    public TbCategory getFather() {
        return father;
    }

    public void setFather(TbCategory father) {
        this.father = father;
    }

    private TbCategory father;




    public int getSortOrder() {
        return sortOrder;
    }

    public void setSortOrder(int sortOrder) {
        this.sortOrder = sortOrder;
    }

    public boolean isParent() {
        return isParent;
    }

    public void setParent(boolean parent) {
        isParent = parent;
    }

    private boolean isParent;

    public int getParentId() {
        return parentId;
    }

    public void setParentId(int parentId) {
        this.parentId = parentId;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public int getStatus() {
        return status;
    }

    public void setStatus(int status) {
        this.status = status;
    }


}
